package examples.log4j;

import java.io.File;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class MyApp {

    private static Logger logger = Logger.getLogger(MyApp.class.getName());

    public static void main(String[] args) {
        PropertyConfigurator.configure("src/examples/log4j/config.properties");
        logger.info("Entering application.");
        logger.info("Exiting application.");
        logger.error("Error");
    }
}